package test;

public class ExceptionDemo01 {
    public static void main(String[] args) {
            try {
                fun();
                System.out.println("A");
            }catch (Exception e){
                System.out.println("C");
            }finally {
                System.out.println("D");
            }
    }

    public static void fun()  {
        try{
            throw new RuntimeException();
        }finally {
            System.out.println("B");
        }
    }
}
